import {get, post, put, del} from '@/utils/request'

export function add(data) {
    return post('/home/order/add', data)
}

export function getInfo(page, pageSize, searchForm) {
    return get('/home/order/list?page=' + page + '&pageSize=' + pageSize + '&orderNo=' + searchForm.orderNo
        + '&payPhone=' + searchForm.payPhone)
}

export function update(data) {
    return put('/home/order/update', data)
}

export function updateStatus(data) {
    return put('/home/order/update-status', data)
}

export function deleteUser(id) {
    return del(`/user/delete/${id}`)
}


export function cancelOrder(data) {
    return post('/home/order/cancel-order', data)
}